// import tuiButton from "@/components/thorui/tui-button/tui-button"

export default {
  name: "AccountView",
  data() {
    return {
      name: '',
      email: '',
      tab: [
        {
          title: '我的课程',
          icon: 'https://pub-img.perfectdiary.com/material/image/2021/02/85ce2d0760cb47429c5dd4c0fdf22188.png',
          page: 'trainList',
        },
      ]
    }
  },
  created() {
    uni.$API.UserAuth.userInfo().then((res) => {
      this.name = res.data.name;
      this.mobile = res.data.mobile;
    })
  },
  methods: {
    gotoMyAppointment(item) {
      uni.navigateTo({
        url: 'pages/account/myAppointment/index'
      })
    },
    gotoMyPolicy() {
      uni.navigateTo({
        url: 'pages/account/myPolicy/index'
      })
    },
    gotoEntrustment() {
      uni.navigateTo({
        url: 'pages/account/entrustment/index'
      })
    }
  },
  // components: {
  //   tuiButton
  // },

}

